/*
 * Copyright (C) 2018 yixun All Rights Reserved.
 * 
 * OtherCompanyService.java
 */
package com.yixun.qfbao.dao;

import com.yixun.common.page.Page;
import com.yixun.qfbao.model.Company;
import com.yixun.qfbao.model.OtherCompany;
import com.yixun.qfbao.model.dto.OtherCompanyDto;

import java.util.List;

public interface OtherCompanyDao {

	Page<OtherCompany> getPageModel(OtherCompanyDto entity, int begin, int end);
	
	List<OtherCompany> selectListByDto(OtherCompanyDto entity);
	
	OtherCompany selectByDto(OtherCompanyDto entity);

	OtherCompany selectById(Long id);
	
	OtherCompany selectBy(OtherCompany entity);
	
	OtherCompanyDto create(OtherCompanyDto entity);

	int update(OtherCompanyDto entity);

	int destroy(OtherCompanyDto entity);

	int saveOrUpdate(OtherCompanyDto entity);

	List<OtherCompany> getV10CompanyList(String domain);
	
	List<OtherCompany> getV10CompanyListByCompanyId(Long companyId);

	Company getDevCompanyWithV10CompanyUuid(String companyUuid);
}
